package com.naiterui.ehp.bs.agent;

import com.naiterui.common.redis.config.EnableRedisAutoConfiguration;
import com.naiterui.common.repository.core.BaseJpaRespositoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@EnableWebMvc
@EnableFeignClients
@EnableRedisAutoConfiguration
@EnableAsync
@ComponentScan("com.naiterui")
@EntityScan("com.naiterui")
@SpringBootApplication
@EnableJpaRepositories(basePackages = {"com.naiterui.ehp.bs.agent.repository"},
    repositoryBaseClass = BaseJpaRespositoryImpl.class)
public class AgentServer {

    public static void main(String[] args) {
        SpringApplication.run(AgentServer.class, args);
    }

}
